package top.smallway.Myiews;

import cn.hutool.crypto.digest.DigestUtil;
import cn.hutool.crypto.digest.Digester;

import javax.swing.*;

public class PasswordField extends JPasswordField {
    public String getHashPassword() {
        Digester digester = DigestUtil.digester("sm3");
        return digester.digestHex(String.valueOf(super.getPassword()));
    }
}
